import request from "@/utils/request.js";


//新建对话
export const useNewTalkServe = () => {
  return request({
    method: 'get',
    url: '/api/user/dialogBox/add',
  })
}

// 提交问题
export const useSubmitQuestionServe = (data) => {
  return request({
    method: 'post',
    url: '/api/user/dialogBox/question',
    data:{
      talkID:data.talkID,
      content:data.content,
    }
  })
}

//获取历史对话表
export const useQuarryHistoryServe = () => {
  return request({
    method: 'get',
    url: '/api/user/dialogBox/history',
  })
}

//查看历史对话详情
export const useQuarryHistoryDetailServe = (data) => {
  return request({
    method: 'get',
    url: `/api/user/dialogBox/idhistory/${data}`,
  })
}
